<html>
  <head>
    <title>Demo leaflet.TileLayer.WMTS</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" href="../lib/leaflet/leaflet.css" />
    <script src="../lib/leaflet/leaflet.js"></script>
    <script src="../lib/leaflet/leaflet-tilelayer-wmts-src.js"></script>
  </head>

  <body>
    <div id="map" style="height: 100%; width: 100%;"></div>
    <style></style>
    <script>
      // var map = L.map("map");
      var localhosturl = "http://localhost:8080/geowebcache/service/wmts";
      var url = localhosturl;

      // url =
      //   "http://support.supermap.com.cn:8090/iserver/services/map-world/rest/maps/World/tileImage";
      var wmtslayer = new L.TileLayer.WMTS(url, {
        layer: "ChinaImg",
        style: "normal",
        tilematrixset: "EPSG:3857_ChinaImg",
        format: "image/png",
      });

      //地图上的坐标以经纬度来控制
      var map = L.map("map", {
        minZoom: 3,
        maxZoom: 8,
        center: { lon: 106.345205142979211, lat: 38.279952540566697 },
        zoom: 8,
      });

      var strJson = {
        type: "FeatureCollection",
        name: "huadong1",
        crs: {
          type: "name",
          properties: {
            name: "urn:ogc:def:crs:OGC:1.3:CRS84",
          },
        },
        features: [
          {
            type: "Feature",
            properties: {
              OBJECTID: 21,
              NAME: "福建",
              LabelX: null,
              LabelY: null,
            },
            geometry: {
              type: "MultiPolygon",
              coordinates: [
                [
                  [
                    [118.130487627846193, 24.426552801353257],
                    [118.110903344998903, 24.426147845585394],
                    [118.096197354725675, 24.431000543399261],
                    [118.078906714158478, 24.439324039824463],
                    [118.069384994667644, 24.446839072797147],
                    [118.063382602806513, 24.454894493773462],
                    [118.065624179124853, 24.487673028542673],
                    [118.097206400774283, 24.552330908126731],
                    [118.178666482788472, 24.529343287040156],
                    [118.188881315722881, 24.492110345806605],
                    [118.146309985350939, 24.432260376734092],
                    [118.130487627846193, 24.426552801353257],
                  ],
                ],
                [
                  [
                    [117.401714016351534, 23.771972245217764],
                    [117.467487651549405, 23.755781263735717],
                    [117.471177810524111, 23.756546660573832],
                    [117.486991008317958, 23.756141465483658],
                    [117.499762394447288, 23.749885523117907],
                    [117.508241039472466, 23.740435450501003],
                    [117.506999191864224, 23.725855159562286],
                    [117.414765054518526, 23.602382793895082],
                    [117.39448750454325, 23.585434681219724],
                    [117.357127139634272, 23.570017783162019],
                    [117.310866775375501, 23.582105163137388],
                    [117.339225665320171, 23.695165673968663],
                    [117.370186482130961, 23.762378594634118],
                    [117.381716126796519, 23.772523056019786],
                    [117.401714016351534, 23.771972245217764],
                  ],
                ],
                [
                  [
                    [120.416777047119652, 27.208920192392476],
                    [120.422652516073057, 27.174728195040437],
                    [120.338726965887844, 27.241599698205018],
                    [120.317892722670095, 27.287717563265389],
                    [120.310656593502017, 27.311334621872863],
                    [120.269705271984819, 27.318831498147354],
                    [120.211286112422741, 27.29783475215843],
                    [120.189971762251218, 27.282991771492846],
                    [120.176498946552186, 27.223032765525545],
                    [120.202951223285126, 27.220496162724309],
                    [120.223309077868834, 27.245632299324853],
                    [120.254845664294791, 27.25216753751889],
                    [120.32928631527929, 27.229656356800447],
                    [120.421510819962151, 27.147853607470903],
                    [120.385672025968447, 27.094933677473385],
                    [120.330968599577332, 27.099379435941135],
                    [120.277767891054452, 27.110494534414297],
                    [120.253665132900892, 27.129387232873551],
                    [120.236771559997592, 27.06132794246605],
                    [120.23567516126532, 27.032716428719699],
                    [120.236213577920338, 26.982154435711642],
                    [120.204567353140817, 26.91632527285984],
                    [120.137480930537606, 26.925767984791072],
                    [120.033585064153087, 26.898272989441672],
                    [120.019831793135069, 26.840212376902031],
                    [120.034007333105137, 26.819097646498097],
                    [120.058928601893456, 26.819241081404702],
                    [120.104558074647869, 26.794103436178897],
                    [120.128371078568719, 26.644853769046723],
                    [120.097268523470191, 26.622083752848035],
                    [119.99384698895426, 26.599511457698551],
                    [119.937596056663907, 26.557156577947076],
                    [119.887040060848847, 26.5207603731277],
                    [119.86066062359906, 26.517980066208111],
                    [119.83608145215355, 26.527501455552894],
                    [119.833311029482445, 26.560063741785616],
                    [119.854550278277685, 26.593194902863249],
                    [119.903090102812598, 26.621661689826006],
                    [119.94829774777962, 26.626386206599225],
                    [119.976366929637436, 26.652432554563976],
                    [120.073714292119817, 26.788444143063987],
                    [119.965108713812, 26.795211686200496],
                    [119.923366891566644, 26.790001836983194],
                    [119.892613629745725, 26.697154027000352],
                    [119.892990600350615, 26.669586690996884],
                    [119.867178459951106, 26.64909481936532],
                    [119.791910592671726, 26.692294228290951],
                    [119.788300766183653, 26.796318744332094],
                    [119.68836225222249, 26.812915557071822],
                    [119.676610486356452, 26.772280784209809],
                    [119.687875483966309, 26.740481872955268],
                    [119.708712370719908, 26.72687370795191],
                    [119.728828688050541, 26.711456567541614],
                    [119.704140914210669, 26.694508949232645],
                    [119.685789748901328, 26.706037990894078],
                    [119.631202605909124, 26.751318911616213],
                    [119.627127453914085, 26.774746968957881],
                    [119.618774649923765, 26.794105516531481],
                    [119.577059604636162, 26.785772549335555],
                    [119.550659608785566, 26.756457163723049],
                    [119.534262461847916, 26.647987321464832],
                    [119.553008620682618, 26.617711299476706],
                    [119.600116715785575, 26.574105397248211],
                    [119.621482379965968, 26.590206629094197],
                    [119.666078181370978, 26.610349695634866],
                    [119.737467184744474, 26.608268991330153],
                    [119.780668660558959, 26.572979173582066],
                    [119.820799039250588, 26.442422739734102],
                    [119.788984981566173, 26.409375315812628],
                    [119.766492877755937, 26.407772269333375],
                    [119.734812466314068, 26.435484268648569],
                    [119.653443165280407, 26.492979107615863],
                    [119.577866131174801, 26.474086055502482],
                    [119.565933209514199, 26.443530712122858],
                    [119.658436320458776, 26.338813552123089],
                    [119.689810076831591, 26.318124035022755],
                    [119.737764388491627, 26.332235660951625],
                    [119.756781544814856, 26.366029882621739],
                    [119.788705327982896, 26.398260227132035],
                    [119.819135292974224, 26.418815220927137],
                    [119.949267303604245, 26.367982923354457],
                    [119.934265768375994, 26.34894809987059],
                    [119.884546990502315, 26.310761050621579],
                    [119.850517864492673, 26.32298197216306],
                    [119.817324772227323, 26.322837667844833],
                    [119.793645600171445, 26.303524468532498],
                    [119.793160760081619, 26.280762800869997],
                    [119.768373660038108, 26.289852203674808],
                    [119.669263848747732, 26.282004357826956],
                    [119.635800153076644, 26.256734006400539],
                    [119.593435995319155, 26.174083983456185],
                    [119.507879378868566, 26.056029005975844],
                    [119.425654604610202, 25.997132959101815],
                    [119.405503592201129, 26.010893359927298],
                    [119.34176386028156, 26.04436506318649],
                    [119.198976857597131, 26.108527511860732],
                    [119.097876311988955, 26.140613839299867],
                    [119.257036723982665, 25.963256008052216],
                    [119.354400182178651, 25.938073376232335],
                    [119.447867117285881, 25.960474172262774],
                    [119.46510230064861, 25.97213995465993],
                    [119.492111521968326, 25.994917570503326],
                    [119.501490573366397, 26.022701115415355],
                    [119.517330340636789, 26.040414766553912],
                    [119.572464881039906, 26.043331048492764],
                    [119.683222102637203, 26.013673510739704],
                    [119.706217717349602, 25.990894727743775],
                    [119.697314305708133, 25.970337981672568],
                    [119.672601880121135, 25.929630367118758],
                    [119.611490830951283, 25.875756410026774],
                    [119.591761970052062, 25.863803138517746],
                    [119.600726433642748, 25.809227549058189],
                    [119.621478413768088, 25.756862983377768],
                    [119.581131504755433, 25.680155095736712],
                    [119.513710729969517, 25.686860066697491],
                    [119.452600583044557, 25.682415133769581],
                    [119.453716369176036, 25.6524082173426],
                    [119.45801773682625, 25.617127069460818],
                    [119.480653249035242, 25.572964031345119],
                    [119.505852035944926, 25.557545818352708],
                    [119.553283795434055, 25.563800796929872],
                    [119.644958855254075, 25.416710791235879],
                    [119.645787377967679, 25.353511565092528],
                    [119.61952439578323, 25.340193212279861],
                    [119.614547472804844, 25.338239920837974],
                    [119.601766435067873, 25.34046174035948],
                    [119.592056666041003, 25.360738854026096],
                    [119.582876768215215, 25.398243213062244],
                    [119.581075912984929, 25.41837704473663],
                    [119.505097010294506, 25.474906114169045],
                    [119.42370010139517, 25.511015598760274],
                    [119.379545607134645, 25.586023010021556],
                    [119.351339647521215, 25.603105591484887],
                    [119.315329542613242, 25.606686988037172],
                    [119.302583792443329, 25.56490891555735],
                    [119.25648407449691, 25.501016428864915],
                    [119.222456465691849, 25.472927224161282],
                    [119.169534675155163, 25.455178901992078],
                    [119.105642382921019, 25.421158199950725],
                    [119.106812596706362, 25.397334751904992],
                    [119.170362975471747, 25.344351531886762],
                    [119.24286822078588, 25.324910213057571],
                    [119.281488439273716, 25.324487913932884],
                    [119.352940271557799, 25.253376793753546],
                    [119.27300930841561, 25.172268016277421],
                    [119.146484709504094, 25.118509776281332],
                    [119.092455819012685, 25.105738542606865],
                    [119.035431516152101, 25.127123077108052],
                    [119.032243565005956, 25.164618266285437],
                    [119.055420234298495, 25.17511229312791],
                    [119.068975943227656, 25.206155027685305],
                    [119.061748516163973, 25.273240971695856],
                    [118.993275049313041, 25.281854205573858],
                    [118.945628188258652, 25.270189999886263],
                    [118.875245294193704, 25.242786277471744],
                    [118.882752874810549, 25.219484098912297],
                    [118.913002204717216, 25.218799483487359],
                    [118.968136748060758, 25.177444646855992],
                    [118.939524130965566, 25.106467963644072],
                    [118.892236511228376, 25.102616054428616],
                    [118.860637436638527, 25.10142904505561],
                    [118.847435289771141, 25.083166739270474],
                    [118.868963521156516, 25.044080315891975],
                    [118.987018383552353, 24.972122422087999],
                    [119.011822548692635, 24.947822909399605],
                    [118.985371861101697, 24.927121574171839],
                    [118.717579681739025, 24.843232202007034],
                    [118.694368693071667, 24.851917394888954],
                    [118.706060759943739, 24.873788944326936],
                    [118.725904786781982, 24.887674652100944],
                    [118.706618805457325, 24.931569522030848],
                    [118.667162028714472, 24.947401033275302],
                    [118.573280542313682, 24.883094249759637],
                    [118.626874918769474, 24.771365654521986],
                    [118.651752959888981, 24.780466399523881],
                    [118.708139397864997, 24.802534139177684],
                    [118.763488067869503, 24.756911385410692],
                    [118.750638167108264, 24.724898808312226],
                    [118.657863074632417, 24.575180079237683],
                    [118.6231216118248, 24.544066750716478],
                    [118.595636261043367, 24.528785239564346],
                    [118.553821005013148, 24.512539330768103],
                    [118.553613504696116, 24.545453139625252],
                    [118.56007598423129, 24.576287372622165],
                    [118.520628664372538, 24.598229672646646],
                    [118.475069240492317, 24.615735129281504],
                    [118.440337018910895, 24.628507309616204],
                    [118.417017984223847, 24.620730538902009],
                    [118.327286135979847, 24.584054875357502],
                    [118.240057180903008, 24.53656201971139],
                    [118.195335504591384, 24.61073240151088],
                    [118.193398992698235, 24.649900922232035],
                    [118.169163152007357, 24.682112721035448],
                    [118.043952361309536, 24.616006388206209],
                    [117.982840548063251, 24.564480327212063],
                    [117.978529619871821, 24.541493957158423],
                    [118.026590110429126, 24.529199611570764],
                    [118.051718469724975, 24.517393136882994],
                    [118.020234679160367, 24.440413102998857],
                    [117.960888054636143, 24.450449161777904],
                    [117.922413044016224, 24.466423770397299],
                    [117.893127019224636, 24.479762467364854],
                    [117.849575362878412, 24.4853161323006],
                    [117.823960478352845, 24.479339292723218],
                    [117.795077916088346, 24.460358470309817],
                    [117.834913554162199, 24.418228084398791],
                    [117.897004929850524, 24.383785886026256],
                    [117.934769616783782, 24.386835599799674],
                    [118.037489785854333, 24.403638950830373],
                    [118.095351926114319, 24.342951346861476],
                    [118.119785457996471, 24.292675284650095],
                    [118.124088964812316, 24.258915875383131],
                    [118.023394761978579, 24.205158116525276],
                    [117.960347390483719, 24.153775921695804],
                    [117.865053123868037, 24.037116263017431],
                    [117.763666716619525, 23.917387319912127],
                    [117.735603345001479, 23.900440696612343],
                    [117.728395482853585, 23.941689117240099],
                    [117.770750157639966, 23.988425850434066],
                    [117.795185653495238, 24.003914869348549],
                    [117.762974025356286, 24.060165563198073],
                    [117.710069848718632, 24.041832486219327],
                    [117.652001589965579, 23.933497615755986],
                    [117.61504673281901, 23.863773649276428],
                    [117.477541129429426, 23.840437459197723],
                    [117.366146356100415, 23.790998708698041],
                    [117.305043519723469, 23.758490151908809],
                    [117.267207425014021, 23.729878811739074],
                    [117.255597008421802, 23.664600439643266],
                    [117.196014962809286, 23.624532203515148],
                    [117.174577241198676, 23.61684673981399],
                    [117.165179711519428, 23.633838390296219],
                    [117.139773847654624, 23.65876981486894],
                    [117.109209075481246, 23.670990908984557],
                    [117.084639029105332, 23.684186639952035],
                    [117.061993327622829, 23.701960610406655],
                    [117.04087117230948, 23.729880981302962],
                    [117.027541587392236, 23.760434990841592],
                    [117.014221470298082, 23.806272705186224],
                    [117.008659582769596, 23.827108501993528],
                    [116.991145568994256, 23.888777872652049],
                    [116.952795003328148, 23.998841741231313],
                    [116.936694411837152, 24.02183574863389],
                    [116.92699171266554, 24.058781697147378],
                    [116.924481452438002, 24.090858556641354],
                    [116.931275977423013, 24.128568910562016],
                    [116.957827641771033, 24.164606340464015],
                    [116.967889751549279, 24.189816372993821],
                    [116.887689779541375, 24.388233230701783],
                    [116.829207012434381, 24.453791452825058],
                    [116.773108003843333, 24.507125585644747],
                    [116.753380268037134, 24.527051661233813],
                    [116.750328060942877, 24.565176844074401],
                    [116.755324353996997, 24.59100692459193],
                    [116.766016269560794, 24.622120167972842],
                    [116.77475550865185, 24.650587855317131],
                    [116.761012824088922, 24.670874201747669],
                    [116.67975916969668, 24.670739530717743],
                    [116.659751853503224, 24.670172661676325],
                    [116.609197346677007, 24.657680664403617],
                    [116.572952593757265, 24.642533074797267],
                    [116.495038412035726, 24.647682684668982],
                    [116.436421040518098, 24.736009159782267],
                    [116.382528415214537, 24.816011593937446],
                    [116.241126559761312, 24.847683489527526],
                    [116.187512173729999, 24.857403840501025],
                    [116.144896765588129, 24.847125727864185],
                    [116.10058896005232, 24.846846984798781],
                    [116.074407487787241, 24.854489005954626],
                    [116.01974983744482, 24.89824874711136],
                    [115.935561922100248, 24.917822924167261],
                    [115.887869983476804, 24.916823868834179],
                    [115.872101834734764, 24.927823281787443],
                    [115.851895007667963, 24.952266328790529],
                    [115.850032636652159, 24.963516444106105],
                    [115.883793067332448, 24.975532586130406],
                    [115.877790292477258, 25.069071863917472],
                    [115.866538922278167, 25.087548088306203],
                    [115.837657746268448, 25.160747772303676],
                    [115.839602931224391, 25.191024103807436],
                    [115.864190979209951, 25.210192999890406],
                    [115.898966866720471, 25.22935483560217],
                    [115.970915298415534, 25.317699860987222],
                    [115.979051748222247, 25.350883936685747],
                    [115.974047101818655, 25.378523068598838],
                    [116.023504207258, 25.63047335058253],
                    [116.058776562340057, 25.696310759068545],
                    [116.123352769964072, 25.764917774305459],
                    [116.141559994758467, 25.803114550625104],
                    [116.128978091980784, 25.831509856503352],
                    [116.134548339482507, 25.862839467385729],
                    [116.163638481961243, 25.894791529491567],
                    [116.191835115810704, 25.913816310437696],
                    [116.216837407806437, 25.921737592897237],
                    [116.250587764200631, 25.922843979420772],
                    [116.276427501278562, 25.92908964323766],
                    [116.329754613953384, 25.959851845940772],
                    [116.395535783743057, 26.059087574161037],
                    [116.421007834547936, 26.141521651012365],
                    [116.406975905911622, 26.206591416022345],
                    [116.389210342162755, 26.253266310914299],
                    [116.39059551749861, 26.27368777044315],
                    [116.408372113499922, 26.300768950478162],
                    [116.428919667573894, 26.324936078161933],
                    [116.506815043917825, 26.409418673506842],
                    [116.535805192158236, 26.402714699720509],
                    [116.558999316247025, 26.380554986937263],
                    [116.597402525986425, 26.394379220726421],
                    [116.616249858567258, 26.497746095467939],
                    [116.584695911060308, 26.508827216559613],
                    [116.561429399385005, 26.531325683889396],
                    [116.5378230137852, 26.571324486549941],
                    [116.506717720421406, 26.676885918661675],
                    [116.504918233984583, 26.708827873473687],
                    [116.546769926588539, 26.870219117668377],
                    [116.607548585936613, 26.940501955003516],
                    [116.62336081602615, 26.954387496976278],
                    [116.672538548950087, 26.989659159403441],
                    [116.892618580451568, 27.025776237760581],
                    [116.931283277093314, 27.024524948185213],
                    [117.031879383035701, 27.100477119776926],
                    [117.158971541434852, 27.287545501233843],
                    [117.117004960313906, 27.338837892137239],
                    [117.101434293244566, 27.521477726741768],
                    [117.108382564822989, 27.567450306133832],
                    [117.118525775752062, 27.591894704914971],
                    [117.156164526067414, 27.640504904392031],
                    [117.335070578169038, 27.85774105757341],
                    [117.525272235718248, 27.974617171526891],
                    [117.553812955968041, 27.941559940412052],
                    [117.589785998233125, 27.886621883097504],
                    [117.611728757269617, 27.861278625334148],
                    [117.654640594704617, 27.841064968003121],
                    [117.742707905738939, 27.812739672830723],
                    [117.764100778057994, 27.82050699623322],
                    [117.781461967842347, 27.84064849784102],
                    [117.78840216574423, 27.866478979590536],
                    [117.786601384005252, 27.887323325908902],
                    [117.797771156726569, 27.916007262444353],
                    [117.825897306935303, 27.93884952834599],
                    [117.952295272863523, 27.974958013798037],
                    [118.023127663278828, 27.984678513663152],
                    [118.090637186465059, 28.01023774459215],
                    [118.130274638923211, 28.043160904598523],
                    [118.26230710740947, 28.071907140622546],
                    [118.364720080299946, 28.093147348114023],
                    [118.384116750261086, 28.172880362104625],
                    [118.3722996249913, 28.189539098958175],
                    [118.351886477891711, 28.203569577677158],
                    [118.352434570422162, 28.228707157222665],
                    [118.407309763042818, 28.270800575349959],
                    [118.437027940533895, 28.284689920737243],
                    [118.44677445213496, 28.288765869628836],
                    [118.462020463279813, 28.284957708875837],
                    [118.521476622687175, 28.272744552453478],
                    [118.623979101019174, 28.281906564375461],
                    [118.647326589719725, 28.287460258675779],
                    [118.735646546339623, 28.313875648701693],
                    [118.80203126630461, 28.231279989707136],
                    [118.783437186143573, 28.159127228781703],
                    [118.749046601616428, 28.093982335264116],
                    [118.739675901062498, 28.053716042914651],
                    [118.749882830524101, 27.969879389708051],
                    [118.766480271772906, 27.94856880755162],
                    [118.782589141906001, 27.934670644672536],
                    [118.833978641928653, 27.839952707786153],
                    [118.891068268151557, 27.724400261365428],
                    [118.922387092309364, 27.548698575377102],
                    [118.908014764511222, 27.527025715066653],
                    [119.148292083355614, 27.42869836418344],
                    [119.17814621690151, 27.421059082501216],
                    [119.209267941911875, 27.417160126943944],
                    [119.243153766562401, 27.417583138536575],
                    [119.26371066246432, 27.42189434865081],
                    [119.433140114297899, 27.500781796394957],
                    [119.456493840599961, 27.513974050283849],
                    [119.470659551054013, 27.529949797384027],
                    [119.501495669263747, 27.609394277265711],
                    [119.504619397170828, 27.636817623052639],
                    [119.522195019197071, 27.657031496641896],
                    [119.552742897841867, 27.674186759635596],
                    [119.619063990957443, 27.663124288850135],
                    [119.685242701539408, 27.51953730563185],
                    [119.691345719666884, 27.474661189582097],
                    [119.689617071795951, 27.418625935808237],
                    [119.76178089385553, 27.337445071706938],
                    [119.825942812315716, 27.319669272823926],
                    [120.056760044794416, 27.340917942767224],
                    [120.083166716129881, 27.356469788646915],
                    [120.109835826467958, 27.380221414782877],
                    [120.127881106603496, 27.391336950656417],
                    [120.147896203778032, 27.400777000386341],
                    [120.175940448405072, 27.407996743691317],
                    [120.211788231817678, 27.414385811882507],
                    [120.240660530562906, 27.412441148482834],
                    [120.351580076907979, 27.377025158172255],
                    [120.38568013848915, 27.333275231206969],
                    [120.402205831520504, 27.307022262522526],
                    [120.412907653913066, 27.27757457653896],
                    [120.415956094629266, 27.255217713522953],
                    [120.416777047119652, 27.208920192392476],
                  ],
                ],
              ],
            },
          },
          {
            type: "Feature",
            properties: {
              OBJECTID: 22,
              NAME: "安徽",
              LabelX: null,
              LabelY: null,
            },
            geometry: {
              type: "MultiPolygon",
              coordinates: [
                [
                  [
                    [119.630114499862714, 31.133065358805535],
                    [119.620258096693789, 31.043900660289655],
                    [119.580116491279213, 30.856669134425022],
                    [119.439479176760329, 30.63965965003209],
                    [119.409831917032463, 30.644310859409046],
                    [119.400183760542319, 30.670421026425728],
                    [119.380661192434602, 30.685623001852562],
                    [119.346083813966985, 30.672923626528785],
                    [119.263722834787217, 30.602218024606877],
                    [119.241832707751627, 30.551466041345773],
                    [119.25412838911177, 30.522359385104785],
                    [119.272615412723923, 30.512650199611709],
                    [119.33233827813855, 30.477214936824264],
                    [119.356224471429684, 30.406663064294776],
                    [119.319001349498294, 30.370554436304978],
                    [119.211782038395214, 30.31499675172784],
                    [119.055934562553688, 30.312495417411427],
                    [119.006919844070296, 30.330972747584127],
                    [118.975669945253358, 30.350835101838172],
                    [118.94968720391374, 30.354581670739819],
                    [118.906639709658947, 30.340549026931459],
                    [118.880925654018654, 30.324996243087455],
                    [118.87423663565643, 30.305033777002759],
                    [118.9002395809744, 30.247082349353523],
                    [118.910238052760448, 30.214086904180423],
                    [118.880096300393504, 30.152779920335789],
                    [118.87843158190384, 30.077493584720315],
                    [118.892884169732781, 30.012492474879945],
                    [118.890788384373622, 29.973530609241148],
                    [118.825102678708774, 29.881513709898847],
                    [118.797384036011309, 29.864359709972046],
                    [118.748711038117278, 29.83471393877074],
                    [118.72938549841534, 29.815965427824455],
                    [118.725373319641264, 29.790197790935103],
                    [118.733013478788408, 29.758112584411386],
                    [118.724607583838477, 29.7305358095923],
                    [118.64814255602333, 29.656654621338834],
                    [118.608766482862052, 29.652900751063886],
                    [118.575933652077623, 29.637484275049086],
                    [118.554808795855976, 29.624010564841452],
                    [118.487380318353772, 29.565753702709895],
                    [118.475230608760967, 29.530824985570643],
                    [118.392446230769252, 29.456301813664041],
                    [118.175073365650533, 29.408035153294307],
                    [118.141204614081317, 29.421373014592092],
                    [118.120909762354259, 29.438798616941202],
                    [118.117860179429343, 29.475826070731053],
                    [118.122296134018072, 29.507902391724869],
                    [118.110011782020351, 29.525955724868545],
                    [117.999794060686682, 29.571307120456826],
                    [117.965369167922091, 29.570822677238176],
                    [117.937018772088507, 29.562352173350195],
                    [117.904942673191641, 29.550265399414602],
                    [117.878680142295281, 29.547619538539919],
                    [117.721735091234407, 29.554433612279958],
                    [117.70021537525983, 29.557780991083053],
                    [117.530210468598312, 29.617758487769454],
                    [117.479098079473673, 29.665963781311007],
                    [117.453124493526161, 29.698328161747757],
                    [117.401868544040354, 29.769582315796349],
                    [117.333962685391072, 29.844995689731267],
                    [117.220623528206033, 29.916385748853958],
                    [117.198716964145092, 29.925429505516],
                    [117.168674752238289, 29.926807813006935],
                    [117.129361071680961, 29.912426066655517],
                    [117.093675563228814, 29.859710651045859],
                    [117.093117128600937, 29.813044809425261],
                    [117.109497594780919, 29.779439523166712],
                    [117.08465638375668, 29.71020003385485],
                    [117.05338907928423, 29.697223323906773],
                    [116.92393101167329, 29.605123510584715],
                    [116.895615976882624, 29.568881817535871],
                    [116.873583236373818, 29.549151715520409],
                    [116.732416028929904, 29.543176569777987],
                    [116.713947138128233, 29.552491215024897],
                    [116.648525449822969, 29.629093857956747],
                    [116.666992521688712, 29.711830623724403],
                    [116.73865384247641, 29.745265759095709],
                    [116.788658824230779, 29.748676587205484],
                    [116.839501176200542, 29.81388250187598],
                    [116.867698865997497, 29.858606169864274],
                    [116.885751984386047, 29.916142589951864],
                    [116.86450450858743, 29.956662407801421],
                    [116.795607909132016, 30.019995329348415],
                    [116.777949979819013, 30.033101092953427],
                    [116.738384045917769, 30.051109442428416],
                    [116.659623423304552, 30.072917308031013],
                    [116.627816747368954, 30.071946074925606],
                    [116.608375672857562, 30.065420447455335],
                    [116.586722077732716, 30.05318868805886],
                    [116.569928809520576, 30.036108170181386],
                    [116.558938689526997, 30.012230107514213],
                    [116.550055754979255, 29.966391496393534],
                    [116.540748602512949, 29.914100217148714],
                    [116.517969959305162, 29.897360834396107],
                    [116.330891496978694, 29.840551308527331],
                    [116.206976433278356, 29.813048083251775],
                    [116.134444142127535, 29.821202157667059],
                    [116.116991843561308, 29.872493650301163],
                    [116.074692595254959, 29.976121369582099],
                    [116.075528424576618, 30.020762324342915],
                    [116.081847988654175, 30.04958065724777],
                    [116.078661276548601, 30.077499286331811],
                    [116.048790816328065, 30.205140087729653],
                    [116.034623136598015, 30.230007199998592],
                    [115.962271813858209, 30.29668252239815],
                    [115.938636667403742, 30.308614835054296],
                    [115.90295171031795, 30.318893739596334],
                    [115.872801418349496, 30.389797845023203],
                    [115.888093191281797, 30.410145782099498],
                    [115.927666877221725, 30.430424240342738],
                    [115.949068428736624, 30.450844382201183],
                    [115.95143667386256, 30.475144697728304],
                    [115.940869871029577, 30.505565617270218],
                    [115.929196826441611, 30.523621440307089],
                    [115.898938791635672, 30.55945835832814],
                    [115.873089725402863, 30.584318822483198],
                    [115.823652864547071, 30.618618606364489],
                    [115.791557303997251, 30.650846700112865],
                    [115.777256241580659, 30.669461190527677],
                    [115.766564677951976, 30.703623927772348],
                    [115.777662283931576, 30.760011021357169],
                    [115.868365048039735, 30.874743225457966],
                    [115.891578200989642, 30.891827834348152],
                    [115.922115551753123, 30.902094489170445],
                    [115.948099588398151, 30.909737444363756],
                    [116.020325902655372, 30.966679395243933],
                    [116.037542835875584, 30.991682200978165],
                    [116.035023222598667, 31.029581598188305],
                    [115.81503210456647, 31.123913133224878],
                    [115.786708480849114, 31.129880396435123],
                    [115.743362650807782, 31.16030210108471],
                    [115.627530626972558, 31.22168204059086],
                    [115.508089680139562, 31.254749466535237],
                    [115.3756523825719, 31.356766090865111],
                    [115.370989192487485, 31.3851615745386],
                    [115.374194652935088, 31.417805113115023],
                    [115.39086189800652, 31.452105876120111],
                    [115.394472558375838, 31.483777605506901],
                    [115.389341994122447, 31.505584279962843],
                    [115.395866760536364, 31.528634380037868],
                    [115.486967864930676, 31.684749618560353],
                    [115.519764404539686, 31.721697369757461],
                    [115.584062346498484, 31.753646257447897],
                    [115.656972370469603, 31.782815103694052],
                    [115.687815708894078, 31.78975497229716],
                    [115.756856078782562, 31.797529984733934],
                    [115.790166129723914, 31.796145191079638],
                    [115.833663905025247, 31.78781215757904],
                    [115.866145113748928, 31.784758611966595],
                    [115.888655107237042, 31.788504758509223],
                    [115.9085101938892, 31.80558471403133],
                    [115.912407395717068, 31.834340128937136],
                    [115.903937749599635, 31.863645341349223],
                    [115.900050846124401, 31.886560279367728],
                    [115.907413156466376, 31.973510521760463],
                    [115.916151094955808, 31.992113267845166],
                    [115.927132383875403, 32.016008362145953],
                    [115.93031840662789, 32.048931028706747],
                    [115.93031867948973, 32.087523623520461],
                    [115.929491251002545, 32.168372043477994],
                    [115.89448126441512, 32.378921943242666],
                    [115.860047172686777, 32.520045230871737],
                    [115.743088936667377, 32.479751168256456],
                    [115.674480055322704, 32.439755018475644],
                    [115.643673042877751, 32.401153702951945],
                    [115.630028380715046, 32.410873143848193],
                    [115.602263227975087, 32.41476367494888],
                    [115.560448369806849, 32.402972279328047],
                    [115.537533419725719, 32.415869123565351],
                    [115.5028196289486, 32.442952393996016],
                    [115.490444942038991, 32.462958350733977],
                    [115.461571251947845, 32.504359325297486],
                    [115.386438980675891, 32.54836988797453],
                    [115.322816142464205, 32.56615375649956],
                    [115.297328022033696, 32.568028288329906],
                    [115.231139846301048, 32.591715193795551],
                    [115.20864934396343, 32.623926479598737],
                    [115.178633865495627, 32.70393784555646],
                    [115.181415040140791, 32.779494177670102],
                    [115.190712691705201, 32.823946581899641],
                    [115.195644907671522, 32.847824484094737],
                    [115.136693521196079, 32.890187466219608],
                    [115.012823460971106, 32.935323462119378],
                    [114.967804014943638, 32.949210617872794],
                    [114.945574228502352, 32.953110004424126],
                    [114.903417872041686, 32.970388816613827],
                    [114.877380215049243, 33.000476193908817],
                    [114.88810826924842, 33.084493565517633],
                    [114.945440707319605, 33.123599363463846],
                    [114.978354093383032, 33.120609450340339],
                    [115.005165676206616, 33.103808497023429],
                    [115.046070648021526, 33.079290869896809],
                    [115.130932926539842, 33.081242606334364],
                    [115.265730577426652, 33.126163897703158],
                    [115.281849022147227, 33.14088702442352],
                    [115.348298678807055, 33.261092207705232],
                    [115.342260021435052, 33.328387358807106],
                    [115.336715266402067, 33.350618927943906],
                    [115.317598528238705, 33.364783399110628],
                    [115.322548623198017, 33.431168715955117],
                    [115.344204420020134, 33.482003051045609],
                    [115.371978461825719, 33.508389472912143],
                    [115.440038640872956, 33.547144964138603],
                    [115.471700518024832, 33.55783613642604],
                    [115.505316367738018, 33.562419690305177],
                    [115.535043550703705, 33.563110082992708],
                    [115.584356085209095, 33.567285900426782],
                    [115.615587718484988, 33.574226905003499],
                    [115.633939056955654, 33.582702997448479],
                    [115.624795834241226, 33.850316331998776],
                    [115.573171163607739, 33.858821899013172],
                    [115.561560907618912, 33.882562170949036],
                    [115.561974103314753, 33.905071568092872],
                    [115.566987953884009, 33.931316418267777],
                    [115.580614263382486, 33.974509763204587],
                    [115.661714423459003, 34.05450934727957],
                    [115.746290831442693, 34.065347875423392],
                    [115.920885216775588, 34.000066805793743],
                    [115.963392781067412, 33.919713861182764],
                    [116.081312723833818, 33.776448181713462],
                    [116.120876923535377, 33.736460589197186],
                    [116.147419420584413, 33.719217593550802],
                    [116.174923620776596, 33.716443909293261],
                    [116.268110928190396, 33.737847647484621],
                    [116.42971910440987, 33.797635632180551],
                    [116.439772828963953, 33.82728984317184],
                    [116.452976042415742, 33.855477504086224],
                    [116.607573098223526, 33.905059430428196],
                    [116.610083704088282, 34.000263599758703],
                    [116.545067684776399, 34.108131140239017],
                    [116.543537349482747, 34.135140135760153],
                    [116.554220092246183, 34.159370155858781],
                    [116.570619164109189, 34.17563145954837],
                    [116.566875271981729, 34.28423809788314],
                    [116.522287956901252, 34.285631826105337],
                    [116.471176265156146, 34.279376483489692],
                    [116.38902272233716, 34.2767397691021],
                    [116.207975036733473, 34.398962541085602],
                    [116.150058383686982, 34.458958946589064],
                    [116.151464320937109, 34.567123745932463],
                    [116.242005638702452, 34.562026899057742],
                    [116.280894453983393, 34.581187926444599],
                    [116.351583384314878, 34.619096437519786],
                    [116.377656799289028, 34.639906326089331],
                    [116.422702416764864, 34.644937703026947],
                    [116.488530373080224, 34.602581491892195],
                    [116.503333826109113, 34.576255053420674],
                    [116.610968014664621, 34.487225298023382],
                    [116.656734135934855, 34.480627831903469],
                    [116.70175348076566, 34.472014957294519],
                    [116.776185075078502, 34.451188587332297],
                    [116.948953264297984, 34.390835124909174],
                    [116.977706623668695, 34.351906861546631],
                    [116.968140646838094, 34.307994872844219],
                    [116.967436949542659, 34.28049052877796],
                    [117.016876056442214, 34.172839378564341],
                    [117.038549027806411, 34.152294863994733],
                    [117.166468001608067, 34.087976427744152],
                    [117.229802150913329, 34.073963363016709],
                    [117.364814059134517, 34.062011358557669],
                    [117.515441258601712, 34.047846193260384],
                    [117.623695748709252, 34.012015484816111],
                    [117.645512094279312, 33.991655286779789],
                    [117.657030973118339, 33.964781954412246],
                    [117.667868912589711, 33.931176364948868],
                    [117.685083878928069, 33.892284549651976],
                    [117.703417788448718, 33.876652169773422],
                    [117.747238485763759, 33.882420345759989],
                    [117.744530420200604, 33.755131555115007],
                    [117.763431522786703, 33.719221510788579],
                    [117.877858797964379, 33.725052482902093],
                    [117.930364951480428, 33.731442618496985],
                    [118.024815917291249, 33.748940599584202],
                    [118.08482912416865, 33.764923647296733],
                    [118.118840357863945, 33.767829494153283],
                    [118.149549069898853, 33.753113768323431],
                    [118.166738441221128, 33.731477564462701],
                    [118.175657404126142, 33.710751555029468],
                    [118.175226886265449, 33.686856281367433],
                    [118.110658799215145, 33.537283066539068],
                    [118.070112003536664, 33.48949079360149],
                    [118.013992919749171, 33.375323733507635],
                    [117.980369479273079, 33.297059583977202],
                    [117.946124484618508, 33.266854255300544],
                    [117.932658733459704, 33.235742527070691],
                    [118.006054114318729, 33.162334787666254],
                    [118.038149988944269, 33.153524676006249],
                    [118.064259054315883, 33.153379664133787],
                    [118.156539324119493, 33.17874169762618],
                    [118.216480576669426, 33.117270221331168],
                    [118.248419778998283, 33.01338161553543],
                    [118.239330630330613, 32.923794128313865],
                    [118.240923562650522, 32.888801243136733],
                    [118.295643967482931, 32.781150249160127],
                    [118.381774720407378, 32.726555283907032],
                    [118.703731007098085, 32.725311810051394],
                    [118.724558141142424, 32.734762961889409],
                    [118.744267946988884, 32.752817383808967],
                    [118.738858657990448, 32.777749216275694],
                    [118.748857224180028, 32.842261536711433],
                    [118.840173802299844, 32.96552583540273],
                    [118.866634059662388, 32.974203474482948],
                    [118.98053096717517, 32.966290809615323],
                    [119.003995920425695, 32.950180475473182],
                    [119.00504079871429, 32.917753343195216],
                    [119.081793913605836, 32.858369015463985],
                    [119.154838642944327, 32.800868176554168],
                    [119.193989593100355, 32.718227759843543],
                    [119.203528429137776, 32.607814663238194],
                    [119.135380369808018, 32.495169683427079],
                    [119.114560533745987, 32.473630446151056],
                    [119.082080330929927, 32.444471304465857],
                    [119.076509760779018, 32.442258294521139],
                    [119.060378743427989, 32.472667559124204],
                    [119.02663999440945, 32.506698937449926],
                    [118.90177960485444, 32.596149972267312],
                    [118.776219033760128, 32.598924755310549],
                    [118.567756241952466, 32.592534881263283],
                    [118.550374497365141, 32.56704548475107],
                    [118.603575928356733, 32.481553833171198],
                    [118.634563100131999, 32.476133675954209],
                    [118.662050877112421, 32.465371296463495],
                    [118.676485847168266, 32.320862807758324],
                    [118.67093152746844, 32.268085928682396],
                    [118.664146180140563, 32.242111372130651],
                    [118.500098219446357, 32.139474202550971],
                    [118.398422242576842, 32.081693762493238],
                    [118.386417452762828, 32.060588057945758],
                    [118.347255513714131, 31.950508920112398],
                    [118.415936632641802, 31.887812500880894],
                    [118.473555179085025, 31.788918063571238],
                    [118.56217993941307, 31.737527246240667],
                    [118.608431759422572, 31.731416519388326],
                    [118.638167967872945, 31.725863455253663],
                    [118.676481462567125, 31.71336124811684],
                    [118.787887641467051, 31.672806660959118],
                    [118.86364994671014, 31.624628443099052],
                    [118.882254096926147, 31.538416188664652],
                    [118.875375848967181, 31.500570336011638],
                    [118.82399563308168, 31.391534535506839],
                    [118.804958718210045, 31.375152751568638],
                    [118.776769923122771, 31.366271928434035],
                    [118.743207901140281, 31.35313868655814],
                    [118.736890988999249, 31.327101311809223],
                    [118.743908790029906, 31.296122628360056],
                    [118.802311656040544, 31.228207806753208],
                    [118.831229059274364, 31.225570401431927],
                    [118.978446600323224, 31.228621814772325],
                    [119.089833049823383, 31.241400945438311],
                    [119.114681590909242, 31.258069259172593],
                    [119.153166589290578, 31.282648087202279],
                    [119.176910348222364, 31.290983414904442],
                    [119.312324998245572, 31.264179288532144],
                    [119.36655970518342, 31.188695245823837],
                    [119.588182602638881, 31.129726517628441],
                    [119.621779816367905, 31.128348351753697],
                    [119.630114499862714, 31.133065358805535],
                  ],
                ],
              ],
            },
          },
        ],
      };
      //L.control.scale({ 'position': 'bottomleft', 'metric': true, 'imperial': false }).addTo(map);

      // var pJson =
      var polygonLayer = L.geoJSON([strJson], {
        pointToLayer: function (geoJsonPoint, latlng) {
          return L.marker(latlng);
        },
      }).addTo(this.map);

      // strJson.features.forEach((element) => {
      //   const center = L.polygon(element.geometry.coordinates)..getCenter();
      //   L.marker(center, { icon: myIcon }).addTo(map);
      // });
      var visualText = "ssssss";
      let htmlContent = `<{text}</div>`;
      var fontsize = 100;
      var color = "#11111";
      // let divContent = `<p style="color:white">${this.placeName}</p>`;
      let customColorIcon = L.divIcon({
        html: `<div style='color:${color} border: 1px ${color} ${color}; text-align: center;   padding: 2px;'>${visualText}</div>`,
        iconSize: 0,
      });

      L.marker(L.latLng(38.279952540566697, 106.345205142979211), {
        icon: customColorIcon,
      }).addTo(this.map);

      map.addLayer(wmtslayer);
    </script>
  </body>
</html>
